package com.website.system.service.impl;


import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.website.system.dao.PharmacyMapper;
import com.website.system.model.Pharmacy;
import com.website.system.service.PharmacyService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PharmacyServiceImpl extends ServiceImpl<PharmacyMapper, Pharmacy> implements PharmacyService {
    /**
     * 注入PharmacyMapper接口
     */
    @Resource
    PharmacyMapper mapper;

    @Override
    public Pharmacy findById(Integer pid) {
        return mapper.findById(pid);
    }

    @Override
    public Integer editById(Pharmacy pharmacy) {
        return mapper.editById(pharmacy);
    }

    @Override
    public List<Pharmacy> importPharmacy() {
        return mapper.importPharmacy();
    }

    @Override
    public int IfDrugType(Integer pid) {
        return mapper.IfDrugType(pid);
    }

    @Override
    public Integer deltype(Integer pid) {
        return mapper.deltype(pid);
    }
}
